package entity;

public class Notiz {
	
	private int id;
	private static int NEXTID = 0;
	private String text;
	
	public Notiz(){
		
	}
	
	public Notiz(String text) {
		super();
		this.text = text;
		this.id=NEXTID++;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	@Override
	public String toString(){
		return "("+id+") "+text;
	}

	public static void setzeNEXTID(int i) {
		NEXTID = i;
	}

	public static int leseNEXTID() {
		return NEXTID;
	}

}
